package com.jiangyg.mall.ware.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * 类描述：
 * 
 * @author jiangyg
 * @email email@jiangyg.com
 * @date 2021-10-18 22:33:26
 */
@Data
@NoArgsConstructor
@EqualsAndHashCode
@TableName("mw_purchase_detail")
public class PurchaseDetail implements Serializable {

	private static final long serialVersionUID = 1L;

	/**
	 * 主键
	 */
	@TableId(type = IdType.ASSIGN_ID)
	@TableField("id")
	private Long id;

	/**
	 * 采购单id
	 */
	@TableField("purchase_id")
	private Long purchaseId;

	/**
	 * 采购商品id
	 */
	@TableField("sku_id")
	private Long skuId;

	/**
	 * 采购数量
	 */
	@TableField("num")
	private Integer num;

	/**
	 * 采购金额
	 */
	@TableField("price")
	private BigDecimal price;

	/**
	 * 仓库id
	 */
	@TableField("ware_id")
	private Long wareId;

	/**
	 * 状态[0新建，1已分配，2正在采购，3已完成，4采购失败]
	 */
	@TableField("status")
	private Integer status;

}
